package com.eastfair.venueservice.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 实体类
 * 服务价目信息明细表
 * </p>
 *
 * @author linan
 * @since 2022-07-21
 */
@Data
@ApiModel(value = "ServicePriceListDetailUpdateDTO", description = "服务价目信息明细表")
public class ServicePriceListDetailDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @NotNull(message = "主键不能为空",groups = {Update.class})
    private Long id;
    /**
     * 服务价目信息表id
     */
    @ApiModelProperty(value = "服务价目信息表id")
    private Long servicePriceId;
    /**
     * 服务明细表id
     */
    @ApiModelProperty(value = "服务明细表id")
    private Long serviceItemDetailId;
    /**
     * 服务单价
     */
    @ApiModelProperty(value = "服务单价")
    private BigDecimal unitPrice;
    /**
     * 服务成本
     */
    @ApiModelProperty(value = "服务成本")
    private BigDecimal costPrice;
    /**
     * 附加费
     */
    @ApiModelProperty(value = "附加费")
    private BigDecimal surcharge;
    /**
     * 税率
     */
    @ApiModelProperty(value = "税率")
    private BigDecimal taxRate;
    /**
     * 展前折扣
     */
    @ApiModelProperty(value = "展前折扣")
    private BigDecimal preExhibitionDiscount;
    /**
     * 现场折扣
     */
    @ApiModelProperty(value = "现场折扣")
    private BigDecimal onSiteDiscount;

    public interface Update{};
}
